package com.quarters.mapper;

import com.quarters.bean.RoleQuarters;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.quarters.bean.UserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 冯政尚
 * @since 2019-09-03
 */
public interface RoleQuartersMapper extends BaseMapper<RoleQuarters> {



    /**
     * @param userId
     * @return 根据当前用户id查询是管理员添加的还是区域管理员添加的
     */
    List<RoleQuarters> selectFlage(@Param("userId")Long userId);


    /**
     * @param openId
     * @return 根据openid查询
     */
    RoleQuarters selectByOpenId(@Param("openId")String openId);

}
